﻿<Window x:Class="_ACID_Cache_Cleaner.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Loading Please Wait..." Height="548" Width="763" MaxHeight="548" MaxWidth="763" MinHeight="548" MinWidth="763"  Loaded="Window_Loaded" ResizeMode="CanMinimize"  VerticalAlignment="Center" HorizontalAlignment="Center" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" WindowStartupLocation="CenterScreen" Closed="Window_Closed">
    <Grid Visibility="Visible" Opacity="1">
        <DockPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></DockPanel>
        <Image Height="66" HorizontalAlignment="Left" Margin="14,1,0,0" Name="image1" Stretch="Fill" Source="Img/imvuicon.png" VerticalAlignment="Top" Width="71" />
        <Label Content="label1" Height="28" HorizontalAlignment="Left" Width="auto" Margin="89,44,0,0" Name="g_card" VerticalAlignment="Top" />
        <Label Content="label1" HorizontalAlignment="Left" Margin="89,23,0,458" Name="ram_amout" />
        <Label Content="File" Height="33" FontSize="18" HorizontalAlignment="Left" Margin="88,-2,0,0" Name="OS_Name" VerticalAlignment="Top" Width="auto" />
        <Button Content="Kill IMVU" Height="23" HorizontalAlignment="Left" Margin="639,40,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
        <TabControl Height="436" HorizontalAlignment="Left" Margin="0,73,0,0" Name="tabControl1" VerticalAlignment="Top" Width="741" TabStripPlacement="Left">
            <TabItem Name="tabItem1">
                <TabItem.Header>
                    <StackPanel Orientation="Vertical">
                        <TextBlock Text="Cleaner" FontSize="16" TextAlignment="Center" />
                        <StackPanel Orientation="Vertical">
                            <Image Source="Img/clean.png" Width="50" Height="50" />
                        </StackPanel>
                    </StackPanel>
                </TabItem.Header>
                <Grid>
                    <Button Content="Start Cleaner" Height="23" HorizontalAlignment="Left" Margin="536,397,0,0" Name="Cleaner_Start" VerticalAlignment="Top" Width="84" Click="Cleaner_Start_Click_1" />
                    <Label Content="Size: 0 B" Height="28" HorizontalAlignment="Left" Margin="7,367,0,0" Name="label1" VerticalAlignment="Top" />
                    <ProgressBar Height="23" HorizontalAlignment="Right" Margin="0,397,103,0" Name="progressBar1" ToolTip="This is So fast it wont run right :p" VerticalAlignment="Top" Width="373" />
                    <Label Content="0%" Height="28" HorizontalAlignment="Left" Margin="134,367,0,0" Name="label2" VerticalAlignment="Top" Visibility="Hidden" />
                    <Label Content="Run Time: Null" Height="28" HorizontalAlignment="Left" ToolTip="Hour:Mintues:Seconds" Margin="7,396,0,0" Name="label3" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="158,369,0,0" Name="textBox1" VerticalAlignment="Top" Width="372" IsReadOnly="True" ToolTip="IMVU Location" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="536,369,0,0" Name="textBlock1" VerticalAlignment="Top">
                        <Hyperlink Click="Hyperlink2_Click">Copy Path</Hyperlink>
                    </TextBlock>
                    <TabControl Height="363" HorizontalAlignment="Left" Margin="1,0,0,0" Name="tabControl2" VerticalAlignment="Top" Width="630">
                        <TabItem Header="All Items" Name="tabItem6">
                            <Grid>
                                <ListView Height="331" Margin="1,0,0,0" Name="listView1" VerticalAlignment="Top">
                                    <ListView.View>
                                        <GridView ColumnHeaderContainerStyle="{StaticResource myHeaderStyle}">
                                            <GridViewColumn Width="75">
                                                <GridViewColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <Border BorderBrush="DarkBlue" BorderThickness="1" CornerRadius="2" Margin="3">
                                                            <Image Height="50" Source="Img/file.png" ToolTip="{Binding path}" Width="50" />
                                                        </Border>
                                                    </DataTemplate>
                                                </GridViewColumn.CellTemplate>
                                            </GridViewColumn>
                                            <GridViewColumn Width="475">
                                                <GridViewColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <StackPanel Orientation="Vertical">
                                                            <TextBlock FontSize="18" Foreground="black" Text="{Binding text}" ToolTip="{Binding path}" />
                                                            <TextBlock FontSize="8" Text="{Binding path}" />
                                                            <TextBlock Text="{Binding size}" TextWrapping="Wrap" />
                                                        </StackPanel>
                                                    </DataTemplate>
                                                </GridViewColumn.CellTemplate>
                                            </GridViewColumn>
                                        </GridView>
                                    </ListView.View>
                                </ListView>
                            </Grid>
                        </TabItem>
                        <TabItem Header="Product Items" Name="tabItem7">
                            <Grid>
                                <ListView Height="331" Margin=" 1,0,0,0" Name="listView4" VerticalAlignment="Top">
                                    <ListView.View>
                                        <GridView ColumnHeaderContainerStyle="{StaticResource myHeaderStyle}">
                                            <GridViewColumn Width="75">
                                                <GridViewColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <Border BorderBrush="DarkBlue" BorderThickness="1" CornerRadius="2" Margin="3">
                                                            <Image Height="50" Source="Img/file.png" ToolTip="{Binding p_path}" Width="50" />
                                                        </Border>
                                                    </DataTemplate>
                                                </GridViewColumn.CellTemplate>
                                            </GridViewColumn>
                                            <GridViewColumn Width="475">
                                                <GridViewColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <StackPanel Orientation="Vertical">
                                                            <TextBlock FontSize="18" Foreground="black" Text="{Binding p_text}" ToolTip="{Binding p_path}" />
                                                            <TextBlock FontSize="8" Text="{Binding p_path}" />
                                                            <TextBlock Text="{Binding p_size}" TextWrapping="Wrap" />
                                                        </StackPanel>
                                                    </DataTemplate>
                                                </GridViewColumn.CellTemplate>
                                            </GridViewColumn>
                                        </GridView>
                                    </ListView.View>
                                </ListView>
                            </Grid>
                        </TabItem>
                        <TabItem Header="Misc Items (Cache Items)" Name="tabItem9">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="335*" />
                                    <ColumnDefinition Width="285*" />
                                </Grid.ColumnDefinitions>
                                <ListView  Height="331" Margin="1,0,0,0"  Name="listView6" VerticalAlignment="Top" Grid.ColumnSpan="2">
                                    <ListView.View>
                                        <GridView ColumnHeaderContainerStyle="{StaticResource myHeaderStyle}">
                                            <GridViewColumn Width="75">
                                                <GridViewColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <Border BorderBrush="DarkBlue" BorderThickness="1" CornerRadius="2" Margin="3">
                                                            <Image Height="50" Source="Img/file.png" ToolTip="{Binding misc_path}" Width="50" />
                                                        </Border>
                                                    </DataTemplate>
                                                </GridViewColumn.CellTemplate>
                                            </GridViewColumn>
                                            <GridViewColumn Width="475">
                                                <GridViewColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <StackPanel Orientation="Vertical">
                                                            <TextBlock FontSize="18" Foreground="black" Text="{Binding misc_text}" ToolTip="{Binding misc_path}" />
                                                            <TextBlock FontSize="8" Text="{Binding misc_path}" />
                                                            <TextBlock Text="{Binding misc_size}" TextWrapping="Wrap" />
                                                        </StackPanel>
                                                    </DataTemplate>
                                                </GridViewColumn.CellTemplate>
                                            </GridViewColumn>
                                        </GridView>
                                    </ListView.View>
                                </ListView>
                            </Grid>
                        </TabItem>
                        <TabItem Header="Misc Items (UI Profile)" Name="tabItem8">
                            <Grid>
                                <ListView  Height="331" Margin=" 1,0,0,0"  Name="listView5" VerticalAlignment="Top">
                                    <ListView.View>
                                        <GridView ColumnHeaderContainerStyle="{StaticResource myHeaderStyle}">
                                            <GridViewColumn Width="75">
                                                <GridViewColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <Border BorderBrush="DarkBlue" BorderThickness="1" CornerRadius="2" Margin="3">
                                                            <Image Height="50" Source="Img/file.png" ToolTip="{Binding ui_path}" Width="50" />
                                                        </Border>
                                                    </DataTemplate>
                                                </GridViewColumn.CellTemplate>
                                            </GridViewColumn>
                                            <GridViewColumn Width="475">
                                                <GridViewColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <StackPanel Orientation="Vertical">
                                                            <TextBlock FontSize="18" Foreground="black" Text="{Binding ui_text}" ToolTip="{Binding ui_path}" />
                                                            <TextBlock FontSize="8" Text="{Binding ui_path}" />
                                                            <TextBlock Text="{Binding ui_size}" TextWrapping="Wrap" />
                                                        </StackPanel>
                                                    </DataTemplate>
                                                </GridViewColumn.CellTemplate>
                                            </GridViewColumn>
                                        </GridView>
                                    </ListView.View>
                                </ListView>
                            </Grid>
                        </TabItem>                       
                    </TabControl>
                </Grid>
            </TabItem>
            <TabItem Name="tabItem4">
                <TabItem.Header>
                    <StackPanel Orientation="Vertical">
                        <TextBlock Text="Item DB" FontSize="16" TextAlignment="Center" />
                        <StackPanel Orientation="Vertical">
                            <Image Source="Img/item.png" Width="50" Height="50" />
                        </StackPanel>
                    </StackPanel>
                </TabItem.Header>
                <ListView Height="425" Name="listView2" Width="631" SelectionMode="Single" MouseDoubleClick="listView2_MouseDoubleClick">
                    <ListView.View>
                        <GridView ColumnHeaderContainerStyle="{StaticResource myHeaderStyle}">
                            <GridViewColumn Width="125">
                                <GridViewColumn.CellTemplate>
                                    <DataTemplate>
                                        <Border BorderBrush="DarkBlue" BorderThickness="1" CornerRadius="2" Margin="3">
                                            <Image Height="80" Source="{Binding img}" ToolTip="{Binding name}" Width="100" />
                                        </Border>
                                    </DataTemplate>
                                </GridViewColumn.CellTemplate>
                            </GridViewColumn>
                            <GridViewColumn Width="425">
                                <GridViewColumn.CellTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Vertical">
                                            <TextBlock FontSize="18" Foreground="black" ToolTip="{Binding name}">
                                                <Hyperlink NavigateUri="{Binding P_Links}" RequestNavigate="Hyperlink_RequestNavigate">
                                                    <TextBlock FontSize="18" Text="{Binding name}" Foreground="black" />
                                                </Hyperlink>
                                            </TextBlock>
                                            <TextBlock TextWrapping="Wrap">
                                                <Hyperlink NavigateUri="{Binding dev_url}" RequestNavigate="Hyperlink_RequestNavigate">
                                                    <TextBlock Text="{Binding dev}" />
                                                </Hyperlink>
                                             </TextBlock>
                                            <TextBlock FontSize="8" Text="{Binding id}" />
                                        </StackPanel>
                                    </DataTemplate>
                                </GridViewColumn.CellTemplate>
                            </GridViewColumn>
                        </GridView>
                    </ListView.View>
                </ListView>
            </TabItem>
            <TabItem Name="tabItem3">
                <TabItem.Header>
                    <StackPanel Orientation="Vertical">
                        <TextBlock Text="Resellers" FontSize="16" TextAlignment="Center" />
                        <StackPanel Orientation="Vertical">
                            <Image Source="Img/resell.png" Width="50" Height="50" />
                        </StackPanel>
                    </StackPanel>
                </TabItem.Header>
                <Grid>
                    <ListBox HorizontalAlignment="center" Name="listBox1" Width="631" Height="425" VerticalAlignment="Center" HorizontalContentAlignment="Center" MouseDoubleClick="listBox1_MouseDoubleClick">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Vertical">
                                    <Image HorizontalAlignment="Center" Source="{Binding resell_img}" Width="500" Height="100"></Image>
                                    <Label HorizontalAlignment="Center" Margin="0 0 0 10">
                                        <Hyperlink NavigateUri="{Binding url}" RequestNavigate="Hyperlink_RequestNavigate">
                                            <Label Content="{Binding title}" />
                                        </Hyperlink>
                                    </Label>
                                </StackPanel>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </Grid>
            </TabItem>
            <TabItem Name="tabItem5">
                <TabItem.Header>
                    <StackPanel Orientation="Vertical">
                        <TextBlock Text="Connection" FontSize="16" TextAlignment="Center" />
                        <TextBlock Text="Manger" FontSize="16" TextAlignment="Center" />
                        <StackPanel Orientation="Vertical">
                            <Image Source="Img/conn.png" Width="50" Height="50" />
                        </StackPanel>
                    </StackPanel>
                </TabItem.Header>
                <Grid>
                    <ListView Width="631" Height="425" HorizontalAlignment="Left" Name="listView3" VerticalAlignment="Top" SelectionMode="Extended">
                        <ListView.View>
                            <GridView ColumnHeaderContainerStyle="{StaticResource myHeaderStyle}">
                                <GridViewColumn Width="100">
                                    <GridViewColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding status}" ToolTip="Connection Status" />
                                        </DataTemplate>
                                    </GridViewColumn.CellTemplate>
                                </GridViewColumn>
                                <GridViewColumn Width="125">
                                    <GridViewColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding local_ip}" ToolTip="Local {IP:Port}"/>
                                        </DataTemplate>
                                    </GridViewColumn.CellTemplate>
                                </GridViewColumn>
                                <GridViewColumn Width="300">
                                    <GridViewColumn.CellTemplate>
                                        <DataTemplate>
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Text="{Binding remote_ip}" ToolTip="Remote Server"/>
                                            </StackPanel>
                                        </DataTemplate>
                                    </GridViewColumn.CellTemplate>
                                </GridViewColumn>
                                <GridViewColumn Width="65">
                                    <GridViewColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding port}" ToolTip="Remote Port" />
                                        </DataTemplate>
                                    </GridViewColumn.CellTemplate>
                                </GridViewColumn>
                            </GridView>
                       </ListView.View>
                    </ListView>
                </Grid>
            </TabItem>
            <TabItem Name="tabItem2">
                <TabItem.Header>
                    <StackPanel Orientation="Vertical">
                        <TextBlock Text="Settings" FontSize="16" TextAlignment="Center" />
                        <StackPanel Orientation="Vertical">
                            <Image Source="Img/settings.png" Width="50" Height="50" />
                        </StackPanel>
                    </StackPanel>
                </TabItem.Header>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="48*" />
                        <RowDefinition Height="308*" />
                    </Grid.RowDefinitions>
                    <Label Content="Label" FontSize="16" Height="28" HorizontalAlignment="Left" Margin="-1,-2,0,0" Name="IMVU_Ver" VerticalAlignment="Top" />
                    <ProgressBar Height="25" HorizontalAlignment="Left" Margin="60,33,0,0" Name="dl_go" VerticalAlignment="Top" Width="431" Grid.RowSpan="2" />
                    <Label Content="0%" FontSize="16" Height="28" HorizontalAlignment="Left" Margin="0,30,0,0" Name="per" VerticalAlignment="Top" Grid.RowSpan="2" />
                    <Button Content="Update" HorizontalAlignment="Left" Margin="497,30,0,368" Name="Update_But" Width="121" Click="Update_But_Click" Grid.RowSpan="2" />
                    <CheckBox Content="Auto Allow File Deletion" Height="16" HorizontalAlignment="Left" Margin="6,6,0,0" Name="checkBox1" VerticalAlignment="Top" Grid.Row="1" Click="checkBox1_Click" />
                    <Button Content="Save Settings" Height="23" HorizontalAlignment="Left" Margin="504,339,0,0" Name="button2" VerticalAlignment="Top" Width="121" Grid.Row="1" Click="button2_Click" />
                    <CheckBox Content="Auto Kill IMVU On load" Height="16" HorizontalAlignment="Left" Margin="194,6,0,0" Name="checkBox2" VerticalAlignment="Top" Grid.Row="1" />
                    <CheckBox Content="Cache product Icons (Faster Loading if on)" Height="16" HorizontalAlignment="Left" Margin="378,6,0,0" Name="checkBox3" VerticalAlignment="Top" Grid.Row="1" />
                    <Button Content="Check for Update" Height="23" HorizontalAlignment="Left" Margin="497,3,0,0" Name="button3" VerticalAlignment="Top" Width="121" Click="button3_Click" />
                    <TabControl Grid.Row="1" Height="308" HorizontalAlignment="Left" Margin="6,28,0,0" Name="tabControl3" VerticalAlignment="Top" Width="619">
                        <TabItem Header="Downgrade client list" Name="tabItem11">
                            <Grid>
                                <ListView Margin="-1,-1,0,0" Name="listView7" SelectionMode="Single">
                                    <ListView.View>
                                        <GridView ColumnHeaderContainerStyle="{StaticResource myHeaderStyle}">
                                            <GridViewColumn Width="125">
                                                <GridViewColumn Width="125">
                                                    <GridViewColumn.CellTemplate>
                                                        <DataTemplate>
                                                            <TextBox Text="{Binding _file}" />
                                                        </DataTemplate>
                                                    </GridViewColumn.CellTemplate>
                                                </GridViewColumn>
                                                <GridViewColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <TextBox Text="{Binding _ver}" />
                                                    </DataTemplate>
                                                </GridViewColumn.CellTemplate>
                                            </GridViewColumn>
                                            <GridViewColumn Width="250">
                                                <GridViewColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <Label HorizontalAlignment="Center" Margin="0 0 0 10">
                                                            <Hyperlink NavigateUri="{Binding _url}" RequestNavigate="Hyperlink_RequestNavigate_1">
                                                                <Label Content="{Binding _title}" />
                                                            </Hyperlink>
                                                        </Label>
                                                    </DataTemplate>
                                                </GridViewColumn.CellTemplate>
                                            </GridViewColumn>
                                        </GridView>
                                    </ListView.View>
                                </ListView>
                            </Grid>
                        </TabItem>
                        <TabItem Header="Auto Cleaner Settings" Name="tabItem10">
                            <Grid>
                                <Label Content="Version: N/A" Height="28" HorizontalAlignment="Left" Name="A_Ver" VerticalAlignment="Top" />
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="86,233,0,0" Name="textBox2" VerticalAlignment="Top" Width="120" TextChanged="textBox2_TextChanged" HorizontalContentAlignment="Left" />
                                <Label Content="Run X (Days):" Height="28" HorizontalAlignment="Left" Margin="0,229,0,0" Name="label5" VerticalAlignment="Top" />
                                <Button Content="Check for Update" Height="23" HorizontalAlignment="Left" Margin="505,1,0,0" Name="button4" VerticalAlignment="Top" Width="104" Click="button4_Click" />
                            </Grid>
                        </TabItem>
                    </TabControl>
                </Grid>
            </TabItem>
        </TabControl>
    </Grid>
</Window>
